<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<?php
echo "<?php\n";
$nameColumn=$this->guessNameColumn($this->tableSchema->columns);
$label=$this->pluralize($this->class2name($this->modelClass));
echo "\$this->breadcrumbs=array(
	'$label'=>array('index'),
	\$model->{$nameColumn}=>array('view','id'=>\$model->{$this->tableSchema->primaryKey}),
	'Update',
);\n";
?>
?>
<div class="heading">
    <h1><img src="<?php echo '<?php echo Util::themeUrl() ?>'; ?>/images/header.ico" />Update <?php echo $this->modelClass." <?php echo \$model->{$this->tableSchema->primaryKey}; ?>"; ?></h1>

    <div class="controls">
        <?php echo "<?php\n" ; ?>
        if (!isset($_GET['ajax'])) {
            echo CHtml::link("Trở lại trang trước", array('index'),  array('class' => 'controls'));
        }
     <?php echo "?>\n";?>
    </div>
</div>

<div class="content">
    <?php echo "<?php echo \$this->renderPartial('_form', compact('model')); ?>\n"; ?>
</div>
